<?php
$tempconfig=array(
    'lotterybegintime' => strtotime($_P['lotterytime']['start']),
    'lotteryendtime' => strtotime($_P['lotterytime']['end']),
    'first_buy_begintime' => strtotime($_P['first_buy_time']['start']),
    'first_buy_endtime' => strtotime($_P['first_buy_time']['end']),
    'pointsbegintime' => strtotime($_P['pointstime']['start']),
    'pointsendtime' => strtotime($_P['pointstime']['end']),
    'pointsquan' => intval($_P['pointsquan']),
    'pointsquanday' => intval($_P['pointsquanday']),
    'pointsqun' => intval($_P['pointsqun']),
    'pointsqunday' => intval($_P['pointsqunday']),
    'pointsview' => intval($_P['pointsview']),
    'pointsviewmax' => intval($_P['pointsviewmax']),
    'pointsviewtype' => intval($_P['pointsviewtype']),
    'pointsselfbw' => intval($_P['pointsselfbw']),
    'pointsselfzc' => intval($_P['pointsselfzc']),
    'pointsfriendbw' => intval($_P['pointsfriendbw']),
    'pointsfriendzc' => intval($_P['pointsfriendzc']),
    'wechatgrouptips'     => trim($_P['wechatgrouptips']),
    'lose_tips'     => trim($_P['lose_tips']),
    'play_bill_tips'     => trim($_P['play_bill_tips']),
);
$config =array_merge($config,$tempconfig);